export function getMachineIdByFilename(filename: string): string | null {
    const tempArr: string[] = filename.split('-');
    if (tempArr.length > 1 && tempArr[tempArr.length - 1].length > 0) {
        const lastItem = tempArr[tempArr.length - 1];
        const lastIndex = lastItem.lastIndexOf('.');
        return lastIndex > 0 ? lastItem.substring(0, lastIndex) : lastItem;
    } else {
        return null;
    }
}
